<template>
  <el-form :model="userForm" class="el-form" ref="userFormRef">
    <el-form-item label="&nbsp;&nbsp;&nbsp;手机号&nbsp;" prop="phone" v-if="!userForm.id">
      <el-input v-model="userForm.phone"></el-input>
    </el-form-item>
    <el-form-item label="&nbsp;&nbsp;&nbsp;密码&nbsp;&nbsp;&nbsp;&nbsp;" prop="password" v-if="!userForm.id">
      <el-input v-model="userForm.password"></el-input>
    </el-form-item>
    <el-form-item label="&nbsp;&nbsp;&nbsp;姓名&nbsp;&nbsp;&nbsp;&nbsp;" prop="realname">
      <el-input v-model="userForm.realname"></el-input>
    </el-form-item>
    <el-form-item label="&nbsp;&nbsp;&nbsp;性别&nbsp;&nbsp;&nbsp;&nbsp;" prop="sex">
      <el-input v-model="userForm.sex"></el-input>
    </el-form-item>
    <el-form-item label="&nbsp;&nbsp;&nbsp;昵称&nbsp;&nbsp;&nbsp;&nbsp;" prop="nickname">
      <el-input v-model="userForm.nickname"></el-input>
    </el-form-item>
    <el-form-item label="&nbsp;&nbsp;&nbsp;头像&nbsp;&nbsp;&nbsp;&nbsp;" prop="nickname">
      <el-input v-model="userForm.headImg"></el-input>
    </el-form-item>
    <el-form-item label="出生日期" prop="nickname" v-show="!userForm.id">
      <el-input v-model="userForm.dateOfBirth"></el-input>
    </el-form-item>
    <el-form-item label="详细地址" prop="addressDetail" v-show="!userForm.id">
      <el-input v-model="userForm.addressDetail"></el-input>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: "userDrawer"
}
</script>

<style scoped>

</style>